home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
DHA demo
/
Don Norman Folder
/
The Library
/
The Library.rsrc
/
CSTR_1099_restoreMenuCSTR
< prev
next >
Wrap
Text File
|
1994-09-21
|
698b
|
23 lines
global xxoldMenus, xxNumOldMenus,mS
put true into myreset
put the number of menus into tmn
if there is a menu tStr("LibMsg",64) then delete menu tStr("LibMsg",64)
if xxoldMenus ¡ "" then
put line 1 of xxoldmenus into list -- the edit menu
put item 1 of list into themenu
delete item 1 of list
if there is a menu themenu then
put (the number of menuitems in menu themenu = the number of items in list) into myreset
else
put false into myreset
end if
end if
put (tmn = xxNumOldMenus) and (myreset) into myreset
if myreset then
reset menubar
end if
show menubar
put "true" into mS
put "" into xxoldmenus
put 0 into xxNumOldMenus
if there is a menu tStr("LibMsg",40) then delete menu tStr("LibMsg",40)